function formatPrice(price) {
  if (typeof price !== "number") {
    // 防止随意传参导致Number()返回NaN
    price = Number(price) || 0;
  }
  return "￥" + price;
}
